package com.ttn.common.core.entity.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜单管理
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_menu")
public class SysMenu implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 父菜单ID
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 路由名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 路由路径
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 组件路径
     */
    @TableField(value = "component")
    private String component;

    @TableField(value = "resources")
    private String resources;

    /**
     * 跳转路径
     */
    @TableField(value = "redirect")
    private String redirect;

    /**
     * 菜单图标
     */
    @TableField(value = "icon")
    private String icon;

    @TableField(value = "parm")
    private String parm;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否可见：0-隐藏 1-显示
     */
    @TableField(value = "visible")
    private Integer visible;

    /**
     * 状态：0-禁用 1-开启
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

}